jQuery(ducument).ready(function($){
	//taking date after video activation
	var uid;
	var vid;
	
	$.ajax({
		type: "POST",
		dataType:'json',
		url: Drupal.settings.basePath . "admin/service/customer-video-views-ajax",
		data: {
			uid: uid,
			vid : uid,
			customer_view : 1
		},
		beforeSend:function()
		{	//...
			//block smth what generates request
        	},
		success : function(response){
			if(response !== undefined)
			{
				//...
				
				//unblock smth what generates request
			}
		},
		error: function(jqXHR, textStatus, errorThrown){
			//alert('Server error');
			//...
			//unblock smth what generates request
		}
	});
})
